projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183d75b
)
Fix reference counting for icons
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 24 Nov 2010 21:09:55 +0000
(16:09 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 24 Nov 2010 21:09:55 +0000
(16:09 -0500)
gtk/gtkappchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkappchooserwidget.c
b/gtk/gtkappchooserwidget.c
index 22c9652a360397c87cce5fda339b1c357e2b10f5..e80727358d63e7706d8d79b15c5b62e146051a4b 100644
(file)
--- a/
gtk/gtkappchooserwidget.c
+++ b/
gtk/gtkappchooserwidget.c
@@
-537,6
+537,7
@@
gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_app_info_get_description (app) : "");
icon = g_app_info_get_icon (app);
+ unref_icon = FALSE;
if (icon == NULL)
{
icon = g_themed_icon_new ("application-x-executable");
@@
-560,8
+561,6
@@
gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_free (app_string);
if (unref_icon)
g_object_unref (icon);
-
- unref_icon = FALSE;
}
g_free (bold_string);